import Vue from 'vue'
import App from './App.vue'
import router from './router'
import {
  Picker, Popup, Button, Form, Field, Toast, Tabbar, TabbarItem, Grid, GridItem, NavBar, Card, List,
  Tag, Swipe, SwipeItem, Lazyload, Search, Icon, Empty, Cascader, Divider, Uploader, Col, Row, IndexBar,
  IndexAnchor, Cell, CellGroup, Dialog
} from 'vant'

import 'vant/lib/index.less'
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'YOUR_APP_KEY'
})

Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Dialog)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Col)
Vue.use(Row)
Vue.use(Uploader)
Vue.use(Divider)
Vue.use(Cascader)
Vue.use(Empty)
Vue.use(Icon)
Vue.use(Popup)
Vue.use(Search)
Vue.use(Lazyload)
Vue.use(Swipe)
Vue.use(Picker)
Vue.use(SwipeItem)
Vue.use(List)
Vue.use(Card)
Vue.use(NavBar)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Tag)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Toast)
// 把vant中所有的组件都导入了

Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
